// FtpServer.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include "ftp/Server.h"
#include "BoostFileSystem/BoostFileSystem.h"

int _tmain(int argc, _TCHAR* argv[])
{
	try
	{
		BoostFileSystem fs(".");

		ftp::Server server(50000, &fs);
		server.run();
	}
	catch(const std::exception& e)
	{
		std::cerr << "ERROR: " << e.what() << std::endl;
	}

	std::cin.get();

	return 0;
}

